Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding CellsToMultiPolygon #70

Merged
merged 5 commits into from
Aug 12, 2024

Conversation

zachcoleman
Copy link
Collaborator

Took a slightly different approach with this to build up a slice of GeoPolygons instead of a linked list. This felt more idiomatic to Go.

@zachcoleman
Copy link
Collaborator Author

Curious what the thoughts are on repeat cells. The C API states in documentation "It is expected that all hexagons in the set have the same resolution and that the set contains no duplicates. Behavior is undefined if duplicates or multiple resolutions are present, and the algorithm may produce unexpected or invalid output."

We can check against this and/or deduplicate cells as well, but I have just added the caveat to the docstring for now.

isaacbrodsky
isaacbrodsky previously approved these changes Aug 9, 2024
@coveralls
Copy link

coveralls commented Aug 9, 2024

Pull Request Test Coverage Report for Build 10340944716

Details

  • 30 of 30 (100.0%) changed or added relevant lines in 1 file are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+0.6%) to 95.833%

Totals Coverage Status
Change from base Build 4495800687: 0.6%
Covered Lines: 529
Relevant Lines: 552

💛 - Coveralls

Copy link
Collaborator

@jogly jogly left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

excellent!

@jogly jogly merged commit 0a46771 into uber:master Aug 12, 2024
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants